
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class CategoryBO : Csla.BusinessBase<CategoryBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in CategoryBO
			//AuthorizationRules.AllowRead(CategoryIDProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(CategoryNameProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(IsHousingCategoryProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(IsTopicForumProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(IsLanguageProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(IsNewsCategoryProperty, "CategoryBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "CategoryBOReadGroup");

			//AuthorizationRules.AllowWrite(CategoryNameProperty, "CategoryBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsHousingCategoryProperty, "CategoryBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsTopicForumProperty, "CategoryBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsLanguageProperty, "CategoryBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsNewsCategoryProperty, "CategoryBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "CategoryBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of CategoryBO
			//AuthorizationRules.AllowCreate(typeof(CategoryBO), "CategoryBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(CategoryBO), "CategoryBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(CategoryBO), "CategoryBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Category data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
